import request from '../utils/request'
export function returns(data,params,id) {
  return request({
    url: '/member/askfor/returns/' + id,
    method: 'post',
    data: data,
    params: params
  })
}


export function calculate(data,id) {
  return request({
    url: '/member/askfor/calculate/' + id,
    method: 'post',
    data: data
  })
}


export function find(id) {
  return request({
    url: '/member/askfor/find/' + id,
    method: 'get'
  })
}

export function list(params) {
  return request({
    url: '/member/askfor/list',
    method: 'get',
    params: params
  })
}


export function cancel(id){
  return request({
    url:'/member/askfor/cancel/'+id,
    method: 'post',
  })
}

export function shipping(data,id){
  return request({
    url:'/member/askfor/shipping/'+id,
    method:'post',
    data:data
  })
}